from django.urls import path, include, re_path
from rest_framework.routers import SimpleRouter

from . import views

router = SimpleRouter()
router.register('free', views.BookFreeView, 'free')
router.register('categories', views.BookCategoryView)
router.register('hot', views.HotOrderByView)

# router.register('content', views.ArticleContentView, "content")
router.register('', views.BookView)

urlpatterns = [
    re_path('content/', views.ArticleContentView.as_view()),
    path('', include(router.urls)),
]
